package com.tiancheng.trade.settlement.service.payment.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tiancheng.trade.settlement.mapper.payment.PaymentFlowMapper;
import com.tiancheng.trade.settlement.model.payment.PaymentFlow;
import com.tiancheng.trade.settlement.service.payment.IPaymentFlowService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: likailun
 * @Description: 订单支付流水
 * @Date: create in 2022/3/25 5:18 下午
 */
@Service
public class PaymentFlowService implements IPaymentFlowService {
    @Resource
    private PaymentFlowMapper paymentFlowMapper;

    @Override
    public List<PaymentFlow> queryByFlowIds(List<String> flowIds) {
        return paymentFlowMapper.selectList(new QueryWrapper<PaymentFlow>().in("flow_id", flowIds));
    }
}
